﻿@model MODEL.ViewModel.LoginUser

@{
    Layout = null;
}

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录</title>
    <link rel="stylesheet" href="~/Content/themes/qgzx/login_style.css" />

    @Scripts.Render("~/mvcAjax")
    <style type="text/css">
        #divMsg {
        display : none ;
        }
    </style>

    <script type="text/javascript">
    function Success(jsonData){
        $.procAjaxData(jsonData, function () {
            if (window.top) {
                window.top.location = jsonData.BackUrl;
            } else {
                window.location = jsonData.BackUrl;
            }
        })
    }
    </script>

</head>

<body>
    @using(Ajax.BeginForm(new AjaxOptions()
        {
        HttpMethod = "post",
        OnSuccess = "Success",
        LoadingElementId = "divMsg"
        }))
    {
        
            <div class="login-logo">
        <div class="login-logo_content">
            <img src="/images/login-logo.png" alt="">
        </div>
    </div>

    <div id="content">

        <div id="left_login_tz">
            <img style="border-radius:5px;" src="/images/left.jpg" />
        </div>

        <div id="right_login_tz">
            <h2 class="login_tz_lo">登录</h2>
            <br />
            <br />
            <form name="login_form" action="#" method="post">
                <div id="name_psw">
                    <img src="/images/user.jpg" />
                </div>
                @Html.TextBoxFor(x => x.LoginName, new { @style = "height:24px;width:240px;", @placeholder = "账号" })
                @Html.ValidationMessageFor(x => x.LoginName)
                <div style="height:30px;">
                </div>

                <div id="name_psw">
                    <img src="/images/psw.jpg" />
                </div>
                @Html.PasswordFor(x => x.Password, new { @style = "height:24px;width:240px;" })
                @Html.ValidationMessageFor(x => x.Password)
                <div style="height:20px;">
                </div>

                <p style="padding-left:45px;font-size:17px;">
                    @Html.RadioButtonFor(Model => Model.Status, 1, new { @name = "Status", @checked = true }) 学生
                    @Html.RadioButtonFor(Model => Model.Status, 2, new { @name = "Status"}) 老师
                    @Html.RadioButtonFor(Model => Model.Status, 3, new { @name = "Status"}) 单位
                </p>

                <br />
                @Html.CheckBoxFor(x => x.IsAlways) 记住密码
                <a href="/home/register_1" class="login_tz0">注册</a>&nbsp;&nbsp;
                <a href="#" class="login_tz">忘记密码</a>

                <div style="height:20px;">
                </div>

                <div id="login_bottom">
                    <input type="submit" value="" style="background-image:url(/images/login.jpg);border:0px" class="submit_style" />
                </div>

            </form>
        </div>

    </div>
    }
</body>
</html>





<!--
    Author:大学生勤工助学服务队11届网络部
    DataTime：2014-6-9
    Copyright © 2014 大学生勤工助学服务队 Powered by xmfdsh & 四小狼工作室.
    版权所有，违者必究
-->

@*<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录</title>
    <link rel="stylesheet" href="~/Content/themes/qgzx/login_style.css" />

    @Scripts.Render("~/mvcAjax")

    <style type="text/css">
        #divMsg {
            display: none;
        }
    </style>

    <script type="text/javascript">
        function Success(jsonData) {
            $.procAjaxData(jsonData, function () {
                if (window.top) { window.top.location = jsonData.BackUrl; } else {
                    window.location = jsonData.BackUrl;
                }
            });
        }
    </script>
</head>

<body>

    @using (Ajax.BeginForm(new AjaxOptions()
    {
        HttpMethod = "post",
        OnSuccess = "Success",
        LoadingElementId = "divMsg"
    }))
    
    {

   <div id="logo">
    </div>

    <div style="height:20px;">
    </div>

    <div id="buttom">
    </div>

    <div style="height:50px;">
    </div>
        
        
        <div id="content">
            <div id="left">
                <img style="border-radius:5px;" src="/images/left.jpg" />
        </div>

            <div id="right">
                <h2 style="margin:0 0 0 -20px;">登录</h2>
                <br />
                <br />
                <form name="login_form" action="#" method="post">

                    <div id="name_psw">
                        <img src="/images/user.jpg" />
                    </div>
                    @Html.TextBoxFor(x => x.LoginName, new { @style = "height:24px;width:240px;", @placeholder = "学号/邮箱" })
                    @Html.ValidationMessageFor(x => x.LoginName)

                    <div style="height:30px;">
                    </div>

                    <div id="name_psw">
                        <img src="/images/psw.jpg" />
                    </div>

                    @Html.PasswordFor(x => x.Password, new { @style = "height:24px;width:240px;" })
                    @Html.ValidationMessageFor(x => x.Password)

                    <div style="height:20px;">
                    </div>

                    <p style="padding-left:45px;font-size:17px;">
                        @Html.RadioButtonFor(Model => Model.Status, 1, new { @name = "Status", @checked = true }) 学生
                        @Html.RadioButtonFor(Model => Model.Status, 2, new { @name = "Status" }) 单位
                        @Html.RadioButtonFor(Model => Model.Status, 3, new { @name = "Status" }) 老师
                    </p>

                    <br />
                    @Html.CheckBoxFor(x => x.IsAlways) 记住密码
                    <div id="reg_text">
                        <a href="/home/register_1" class="login">注册</a>&nbsp;&nbsp;
                        <a href="#" class="login">忘记密码</a>
                    </div>

                    <div style="height:20px;">
                    </div>

                    <div id="login_bottom">
                        <input type="submit" value="" style="background-image:url(/images/login.jpg);border:0px" class="submit_style" />
                    </div>

                </form>
            </div>

        </div>
    }
</body>
</html>*@
